
class Factor:
    def __init__(self) -> None:
        pass

    def add_expect_column(self, expect_column):
        self.expect_column = expect_column

    def add_factor_column(self, factor_column):
        self.factor_column = factor_column

    def calculate_corr(self):
        return self.factor_column.corr(self.expect_column, method='spearman')
